package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * @Description 探索事件日志 (表放在跨服)
 * @Author cwq
 * @Data 2021/7/1 11:21
 */
@FieldTypeAnnotation(tableName = "t_l_ck_dunhuangshiku_explore_event", desc = "敦煌-探索事件日志", autoSave = true, uploadCk = true)
public class LogDunHuangShiKuExploreEvent extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id")
    private int teamId;

    @FieldTypeAnnotation(desc = "所在区域id")
    private int regionId;

    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;

    @FieldTypeAnnotation(desc = "事件类型")
    private int eventType;

    @FieldTypeAnnotation(desc = "变更前体力")
    private int oldValue;

    @FieldTypeAnnotation(desc = "变更后体力")
    private int newValue;

    public LogDunHuangShiKuExploreEvent(int activityId, long userId, int teamId, int regionId, int eventId, int eventType, int oldValue, int newValue) {
        this.activityId = activityId;
        this.userId = userId;
        this.teamId = teamId;
        this.regionId = regionId;
        this.eventId = eventId;
        this.eventType = eventType;
        this.oldValue = oldValue;
        this.newValue = newValue;
    }

    public long getUserId() {
        return userId;
    }

}
